// @ 516
// _(:з」∠)_

define([], function() {
    'use strict';

    let systemSetting = document.querySelector(".leftMain_cont .systemSetting"),
        systemSettingCont = systemSetting.querySelector(".item_cont");

    RST.basic( Path + "/data/basic/systemSetting.json", "", function( result ) {
        let listLi = ``,
            data = result.data;

        for ( let x = 0; x < data.length; x++ ) {
            let classx = "";
            if ( !data[x].setting ) classx = "noEvent";
            listLi += `<li class="systemSetting_item ${ classx }" value="${ data[x].value }">
                            <h class="systemSetting_item_head">${ data[x].text }</h>
                            <div class="systemSetting_item_cont"></div>
                        </li>`;
        }

        let systemSettingView = `<ul class="systemSetting_list"> ${ listLi } </ul>`;
        systemSettingCont.insertAdjacentHTML("beforeEnd", systemSettingView);
    });
});